home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 116 < prev    next >
Encoding:
Text File  |  1996-08-05  |  980 b   |  30 lines

  1. Path: EU.net!sun4nl!xs4all!usenet
  2. From: martijnl@xs4all.nl (Martijn Lievaart)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Default Printer Detection
  5. Date: 2 Jan 1996 14:49:14 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4cbgla$dra@news.xs4all.nl>
  8. References: <4bumev$cjj@grid.direct.ca>
  9. NNTP-Posting-Host: mas01-15.dial.xs4all.nl
  10. X-Newsreader: WinVN 0.99.6
  11.  
  12. In article <4bumev$cjj@grid.direct.ca>, rega@direct.caº says...
  13. >
  14. >Can anyone tell me how to detect the default printer in Visual C++
  15. >without having to go through CPrintDialog?
  16. >
  17. >Any help would be appreciated.. thx in advance.
  18.  
  19. This is a Windows question, not a C++ question. But well. Answer is twofold:
  20. - Read Petzold's ``Programming Windows''.
  21. - (and now for the real answer) I don't know VC (or MFC) but you should read 
  22. the 'device=' entry in the [windows] section of win.ini and parse it. Petzold 
  23. explains this quite well, as it explains all the other basics you want to 
  24. know.
  25.  
  26. Hope this helps.
  27.  
  28.  
  29.  
  30.